# Write-Host "$($args[0])"
# $run = "$([System.IO.Path]::GetFullPath($($run)))"
# & "$([System.IO.Path]::GetFullPath($($run))) + .exe"

# $exec = "$([System.IO.Path]::GetFileNameWithoutExtension($($run))).exe"

# param ($run)
# & "csc" "$run"
# $exec = "$([System.IO.Path]::GetFileNameWithoutExtension($($run))).exe"
# & "cmd" "/c" "$exec"
# & "cmd" "/c" "rm" "$exec"


$exec = [System.IO.Path]::GetFileNameWithoutExtension($args[0])
& "csc" "$exec.cs"
& "cmd" "/c" "$exec.exe"
& "cmd" "/c" "rm" "$exec.exe"

